﻿using hfcloud.Context;
using hfcloud.Models;
using Microsoft.AspNetCore.Components;
using Microsoft.EntityFrameworkCore;

namespace hfcloud.Services;

public interface IAccountService
{
    List<Account> GetAccount();
}

public class AccountService:IAccountService
{
    [Inject]MysqlDbContext dbContext { get; set; }
    public  List<Account> GetAccount()
    {
        return  dbContext.account.Select(x=>x).ToList();
    }
}